package org.mvn_spring_jsf_jar.common;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class Interceptor implements MethodInterceptor {

	public Object invoke(MethodInvocation arg) throws Throwable {
		System.out.println("Se va a ejeccutar el método "
				+ arg.getMethod().getName());
		Object object = arg.proceed();
		System.out.println("Sejecutó el método " + arg.getMethod().getName());

		return object;
	}
}
